home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
basic
/
qbware.exe
/
COMPRESS.FN
< prev
next >
Wrap
Text File
|
1988-05-01
|
434b
|
23 lines
'Copyright (c) 1987 Marcel Madonna
'*****************************************************************************
Def FnCompress$(Text$)
' This function will remove leading and trailing blanks from any string
Static Rc%, Rc1%
Call Verify(Text$, Space$(1), Rc%)
If Rc% = 0 then
FnCompress$ = ""
Else
Call Xverify(Text$, Space$(1), Rc1%)
FnCompress$ = Mid$(Text$,Rc%,Rc1%-Rc%+1)
End if
End Def